<!-- 表单 -->

<template>
  <WebForm>
    <EasyRow col4>
      <FormInput label="输入框" suffix="后缀" />
      <FormSlot label="数字框">
        <FormNum noLabel half />
        <FormNum :labelWidth="10" half rightBtn />
      </FormSlot>
      <FormSwitch label="开关" bind="status" />
      <ParamTab :param="one" bind="status" :dict="CORE.DICT.STATUS" />
    </EasyRow>

    <EasyRow col4>
      <FormSelect label="下拉框" :dict="role_selectDict" />
      <FormSelectMulti label="多选下拉框" :dict="role_selectDict" />
      <FormRadio label="单选框" bind="status" :dict="CORE.DICT.STATUS" />
      <FormRadio label="单选按钮" bind="status" :dict="CORE.DICT.STATUS" isBtn />
    </EasyRow>

    <EasyRow col4>
      <FormTree label="结构树" :dict="organ_treeDict" />
      <FormTreeMulti label="多选结构树" :dict="organ_treeDict" />
      <FormCheckbox label="复选框" :dict="CORE.DICT.STATUS" />
      <FormCheckbox label="复选按钮" :dict="CORE.DICT.STATUS" isBtn />
    </EasyRow>

    <EasyRow col4>
      <FormDate label="日期" />
      <FormDateRange label="日期范围" half />
      <FormDateMulti label="多选日期" />
    </EasyRow>

    <EasyRow col4>
      <FormTime label="时间" />
      <FormTimeRange label="时间范围" half />
      <FormWeek label="星期" />
    </EasyRow>

    <EasyRow col4>
      <FormMonth label="月份" />
      <FormMonthRange label="月份范围" half />
      <FormYear label="年份" />
    </EasyRow>

    <EasyRow col4>
      <FormSlider label="滑块" />
      <FormSliderRange label="滑块范围" half />
      <FormRate label="评分" />
    </EasyRow>
  </WebForm>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MyForm',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [
    CORE.mixWeb(),
    CORE.mixSelect('role', 'role_'),
    CORE.mixTree('organ', 'organ_'),
  ],
}
</script>
